package com.daedalus.klasaObjekte.Drejtkendesh;
/*
 * Created with IntelliJ IDEA.
 * Author: Kostika Gorica
 * Date: 12-12-03
 * Time: 3.42.MD
 */

public class Point {
    private int x;
    private int y;

    public Point(int x, int y) {
        this.setX(x);
        this.setY(y);
    }

    public Point() {
        this(0,0);
    }


    public int getX() {
        return x;
    }

    public void setX(int x) {
        if (x<0) this.x=0;
        else  this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }
}
